package com.offcn.common.enums;


public enum DemoEnum {
    //1.构造方法的是封装的
    // 2. 对象是在内部创建的

    FIRST(0,"老大"),
    SECONDE(1,"老二"),
    THIRD(2,"老三");

    private Integer num;
    private String name;

    private DemoEnum(Integer num, String name) {
        this.num = num;
        this.name = name;
    }

    public Integer getNum() {
        return num;
    }

    public void setNum(Integer num) {
        this.num = num;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }
}
